package com.ktwlsoft.archivemanage.payload.archiveUnit;

import com.ktwlsoft.archivemanage.payload.inforConst.InforConstAddRequest;
import com.ktwlsoft.archivemanage.payload.inforConst.InfrastructureAddRequest;
import com.ktwlsoft.archivemanage.payload.unitMember.UnitMemberAddRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.List;
import java.util.Map;

@ApiModel("立档单位管理新增")
@Setter
@Getter
public class ArchiveUnitManageAddRequest {

//    /**业务编号(对应立档单位编号)**/
//    @ApiModelProperty("业务编号")
//    @NotNull(message = "业务编号不能为空")
//    @Pattern(regexp = "^\\d{18}$")
//    private String businessId;

    @ApiModelProperty("文件列表")
    private List<UploadFileInfo> files;

    /**立档单位信息**/
    @ApiModelProperty("立档单位信息")
    @NotNull
    @Valid
    private ArchiveUnitAddRequest archiveUnitAddRequest;

    /**人员信息**/
    @ApiModelProperty("人员信息")
    @NotNull
    @Valid
    private UnitMemberAddRequest unitMemberAddRequest;

    /**信息化建设**/
    @ApiModelProperty("信息化建设")
    @NotNull
    @Valid
    private InforConstAddRequest inforConstAddRequest;

    /**基础设施信息**/
    @ApiModelProperty("基础设施信息")
    @NotNull
    @Valid
    private InfrastructureAddRequest infrastructureAddRequest;
}
